﻿@model IEnumerable<CmMvc.Models.CmEvent>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<table>
    <tr>
        <th>
            Timestamp
        </th>
        <th>
            MachineName
        </th>
        <th>
            Source
        </th>
        <th>
            Data
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Timestamp)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MachineName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Source)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Data)
        </td>
        <td>
            @Html.ActionLink("Details", "Details", new { id=item.CmEventId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.CmEventId })
        </td>
    </tr>
}

</table>
